﻿
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace DotNetCore.MyBlogApp.DataModel
{
  
    public class ArticleCategory
    {
        [Key]
       
        public Guid CateGoryId { get; set; }


        
        public string CateGoryName { get; set; }
        
        public bool IsDelete { get; set; }
        [Timestamp]
        public byte[] Vsersion { get; set; }//版本标识

        //导航属性
        public ICollection<Article> Articles { get; set; }//分类下的文章


        public Guid SysUserId { get; set; }//外键id
        public SysUser SysUser { get; set; }//分类所属的创建人

        /// <summary>
        /// 构造函数
        /// </summary>
        public ArticleCategory()
        {
            IsDelete = false;
            Articles = new List<Article>();
        }
    }
}
